<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/22
 * Time: 13:06
 */
namespace phpfuntions\mp_file;
//文件打开关闭类
class myphp_fileSystem_open_close
{
    /**
     * fopen  函数：打开本地或远程的文件　
     * @access public
     * @return
     */
    public static function fopen ($filename, $mode, $use_include_path = null, $context = null) {
        return fopen($filename, $mode, $use_include_path, $context );

    }

    /**
     *fclose  函数：关闭已打开的文件指针
     * @access public
     * @return
     */
    public static function fclose ($handle) {
        return fclose($handle );

    }

    /**
     *popen  函数：根据指定模式打开进程文件指针
     * @access public
     * @return
     */
    public static function popen ($command, $mode) {
        return popen($command, $mode );

    }

    /**
     * pclose  函数：关闭进程文件指针　
     * @access public
     * @return
     */
    public static function pclose ($handle) {
        return pclose($handle );

    }
}